<?php
declare (strict_types = 1);

namespace ui;

/**
 * 
 */
class Event {

    private $name = '';

    public function __construct($name) {
        $this->name = $name;
    }

    public static function create($name) {
        $e = new Event($name);
        return $e;
    }

    public function build() {
        return [
            'name' => $this->name,
        ];
    }
}